package com.kdl.webconfig.vo.config;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author 王成杰
 * @description TODO
 * @date 2022-09-06 下午2:42
 */
@Data
public class NewsVO implements Serializable {

    private Integer id;

    @NotBlank(message = "标题不能为空")
    private String title;

    @NotBlank(message = "内容不能为空")
    private String comment;

    @NotBlank(message = "链接不能为空")
    private String linkUrl;

    @NotBlank(message = "图片地址不能为空")
    private String picUrl;

    @NotNull(message = "发布状态不能为空")
    private Integer state;

    private Date publishDate;

}
